@sgrif I linked you to the comment specifically mentioning that `key` would not be necessary, but I had no access to the relation as provided from the library. The fact that I don't have the value of the relation to get the `key` from it meant that I had to make the function twice as complicated as well as having to make it require the user provide extra information to the function.

@jdkanani Agreed. I'll update the code.