Extracted out the menu choice selection