It might be simpler to have a custom taxonomy (which can be hidden in the UI if you prefer) with a hook so when the page is saved it applies the correct terms to the page based on the template chosen.
I can point you in the right direction on how to do this if you need?