Rewrite Box layouts to use haml