This simplifies the code required to build remote menus and put all the items in the right place, and makes us share our implementation with GTK+. https://bugzilla.gnome.org/show_bug.cgi?id=698427