Move as much functionality as possible into the MenuBuilder and DocumentUtility prototypes.