protected function getServiceLocatorFactory(): ServiceLocatorFactoryInterface
    {
        if (! $this->factory instanceof ServiceLocatorFactoryInterface) {
            $this->factory = new ServiceLocatorFactory();
        }

        return $this->factory ?: new ServiceLocatorFactory();
    }