yeah, it's kind of bad.

There should be a CommtrackCase or the like, which cases get automatically wrapped as depending on domain  / case type.

I was able to do this but it broke some tests and I didn't have time to investigate further at the time:

https://github.com/dimagi/casexml/commit/6f4fae8712cb863d0d075411064301241c6ffc4e