protected static function readConfig($path, $file) {
    $source = new FileStorage($path);

    // Re-read checkout flow from the export config file.
    // This should be safe enough as this only runs within a site install
    // context.
    /** @var \Drupal\Core\Config\StorageInterface $configStorage */
    $configStorage = Drupal::service('config.storage');
    return $configStorage->write(
      $file,
      $source->read($file)
    );
  }