def register_factory(self, specification, factory, scope=None):
        """
        Shortcut for creating and registering
        a :py:class:`wiring.providers.FactoryProvider`.
        """
        self.register_provider(
            specification,
            FactoryProvider(factory, scope=scope)
        )