Remove menu items that do nothing (#2451).