identityProvider has been moved to the authConfig.
Removing other inits
Separating methods