[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
Pass in the original reflection method instead