protected function importFeatures($task, $cm_core_key) {
    $task->drush("config-import")->arg($cm_core_key)->option('partial');
    $task->drush("pm-enable")->arg('features');
    $task->drush("cc")->arg('drush');
    if ($this->getConfig()->has('cm.features.bundle')) {
      // Clear drush caches to register features drush commands.
      foreach ($this->getConfigValue('cm.features.bundle') as $bundle) {
        $task->drush("features-import-all")->option('bundle', $bundle);
        // Revert all features again!
        // @see https://www.drupal.org/node/2851532
        $task->drush("features-import-all")->option('bundle', $bundle);
      }
    }
  }