Fix #3875: Removing submenus from menus is obviously non-trivial.