Remove unnecessary arguments.