Move authentication method logic into a factory