Move variable declarations until they are actually used, instead of assigning null, then force-reassigning the real value later.