Returns a function for retrieving a contact from the given data context with the contact's parent lineage.

Error if a data context is not provided