Some auth mechanisms like SessionCredentials need to register hooks early, so they cannot be lazy loaded.