Refactor the menus.