Returns a function for retrieving a contact from the given data context.

Error if a data context is not provided