Introduce PackageDef to Trees.