Move some variables' declarations closer to their usage.