Remove redundant variable setups.