Remove redundant local variables.