Refactor layout.html.haml