Convert packages to the new template format (k).