Identities controller has separate actions for each external identity provider (only PT for now), refactor identities factory