All callers request either the menubar or something else, but never conditionally request one or the other. Split the special handling that picks a different handler based on which element the caller requested.