Use config var to set default values instead of \Drupal static method
Use dependency injection to pass the config.factory service
Merge pull request #2 from jmolivas/inject-config-factory

Inject config factory