Generate multiple root menus at once, with appropriate titles and icons.
Return generated table instead of assigning it to a global variable.