Remove the use of local variables only used once.