video 25 refactoring configuration code