Combine the values and labels functions for menus into a single function that returns an array of objects that have properties for both the value and label (plus cssClass if wanted) for a menu item.
Pass the current menu definition (the thing returned from the new combined function above) into the state function. This allows a single state function to be used across all the style menus. It also makes sense in the more general case.
Some tidying.