eliminates all usages of global in TransformUtils