@classmethod
def register_factory(cls, service_type: str, factory_func):
    """Register factory.

        :param service_type: type of service of factory
        :param factory_func: Function to intantiate service
        :return: None
        """
    cls._factories[service_type] = factory_func
