Remove unnecessary options.