Removes from the menu the categories that do not have a parent.