Refactor the Mechanics Math Menu.