Switch order of declaration, which seems to have an odd effect.

It seems to cause unexpected stuff to be set to null if used before
declaration (but surprising this doesn't error.)