Move variable closer to where it is used.