Merge duplicate menus.