domain: Deduplicate get_object_by_id / resolve_xapian_result
domain: Deduplicate get_object_by_id / resolve_xapian_result

These are now the same between the two domains.

endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib