Remove redundant variable declarations.