Refactored and simplified baseline_build_menus().