Remove some unnecessary inputs.