private function resolveSubDefinition($value)
    {
        if (is_array($value)) {
            return array_map([$this, 'resolveSubDefinition'], $value);
        } elseif ($value instanceof DefinitionInterface) {
            return $this->resolve($value);
        }

        return $value;
    }