Replace config() and config_get_storage_names_with_prefix() with \Drupal equivalents.