Refactoring the code to be more readable.