Move some variables' declaration closer to their usage.