Move variable initialization to top of scope.