Refactoring config to make it possible to configure in initializer