Migrated transform_substructure to INIT/METHOD macros