Refactoring configuration helper.