refactor: getPackagingType inlined