Some refactoring to move the injection of the configuration object into the adapter.