Move a variable declaration closer to its usage.