[1257] Moves decl of global var before first use.

transformer is used before it is known about, so move the global before its use.