Further reduction of code duplication in argument parsing.