Refactor to ease work with parse options.