Clean up native menu item creation

Fixes #2615 

Re-organize and simplify the creation of native menu items. This also has the side effect of setting the initial enabled and checked states for menu items.