Factor out option parsing where possible
Factor out option parsing where possible

tensorflow/sig-tfjs,tensorflow/sig-tfjs,tensorflow/sig-tfjs,tensorflow/sig-tfjs,tensorflow/sig-tfjs,tensorflow/sig-tfjs,tensorflow/sig-tfjs