Refactors code to be more readable.