Changes layout of code to be more modulated and easier to manipulate.