Refactoring is the practice of bringing code closer to a problem's ideal solution.