Remove some redundant variables.