I'd guess that Gen 3's init script seems to be the right place to do it. Call `modData` on any move that changes category.