Remove all unnecessary options.