Frameworks made by the compiler are their “own world”, and include everything they need as one unit. It doesn’t include the complete Kotlin runtime, just the parts your code needs. As such, you can’t modularize with frameworks in that way. It’s kind of hard to explain in text, but the short version is no, you can’t do what you’re asking.