[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
You can actually just `return new AbstractMethod($methodName)` instead