refactor(configuration): move configuration logic to central class