Migrated transform_attribute to INIT/METHOD macros