Wraps PackageFactory object creation inside a transaction
Fixes deprecation warning related to I18n