Refactor options.