Make the service_provider_repository optional