MenuItem/ToobarItem creation APIs should not require the parent menu or toolbar, just the Generator. This allows items to be created separately and added to the menu or toolbar at a later stage.
Set the ID of a submenu.
Remove unused parameter actionItem in BaseAction.GenerateMenuItem.