Refactor menu documents using inline documents for entries + handle entries containing a menu.