Refactored Play Twirl compiler to match the layout in Routes