Removes unused menu items.