Restructured the way API "menu" objects are created.