Migrate text.cmp to metadata