refactor: Moved configuration in a separate class and made it more explicit