Refactoring: creating AuthenticatorTemplate classes