private function buildFactoryArgument()
    {
        if ($this->serviceConfig->keyExists('Factory')) {
            $factory = $this->str($this->serviceConfig->key('Factory'));
            $arguments = $this->serviceConfig->key('Arguments', null, true);
            // If it's a STATIC method call - unset all arguments
            if ($this->serviceConfig->key('Static', true, true) && !$factory->startsWith('@')) {
                $arguments = [];
            }
            $factoryArgument = new FactoryArgument($this->serviceConfig->key('Factory'), $arguments,
                                                   $this->serviceConfig->key('Static')
            );
            $this->serviceConfig->key('Factory', $factoryArgument);
        }
    }