[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
We need a new test asset for this newly introduced change (should be used in the functional test suite, not just in the `ProxyManagerTest\Functional\FatalPreventionFunctionalTest`)