Remove redundant variable re-assignments.