Hey!, since you're using this in 2 difference places, how would you feel about making a helper function like getIdFromElem but getCannonicalIdFromElem?

Thanks