Refactor code into three new functions: default_settings(), collect_input(), assemble_command().