Can't you just inject the `marmelab.elastica.proxy_repository_class` instead of the whole Container?