Remove unrecognised options.