Convert packages to new template format (t).