Remove some redundant local variables.