Cleanup MessageView::menuFactory