Refactor ask_yes_no prompting