Cleaned up SegmentPackageManager._make_main_menu().