protected function instance($class, $name, array $configuration, ProviderInterface $provider)
    {
        /** @var FeatureInterface $feature */
        $feature = new $class($name, $configuration['enabled'], $provider);
        $feature->configure($configuration);

        return $feature;
    }