Remove unneeded arguments.