Refactor argparse creation so that it is re-useable in the daemon