Refactor menus.