Inject config factory

This code will avoid of use \Drupal::config static method injecting the config factory service instead