extract a bunch of methods out of parseOptions(), mostly to satisfy checkstyle method size requirements