Also declare those closer to the transform where they are actually used.