I would put encapsulate this routine in SiteExtensionInfo class.   For instance, `public static SiteExtensionInfo CreateFrom(IPackage package);` etc.