Show a warning on production and refactor the layout into partials