It's only used for comparing with contactIds (line 1421), and since those ids needed to be converted to DB IDs also, it seemed simpler to compare them in that form.