Clean up the layout file with partials.