extract OptionFactory from GetoptParser