Loading arbitrary class from embedded swift package

Hi Everyone.
We are migrating a big codebase to packages and we are trying to move code that currently decodes data from user defaults. The problem we're facing is that for previously encoded swift classes, the new decoding module cannot initialize that previous class as it cannot find things like MainModule.ClassA. The module is embedded within the app so I'm wondering if there's a way to load an arbitrary class from an embedded module.

Note: I'm aware we could make use of $objc(ClassA) to prevent namespace addition in the encoding name, but what I need is to decode data already encoded with the namespace on it.