Description
The findTypeIdentity function sometimes returns a Z4, sometimes a Z9, and sometimes null. It doesn't always do the right thing. This function should be split out into some more specific functions
(like findTypeIdentityAsReference) for different use cases.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- build a better type identity gettin' function
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist