Fix a bug due to DS.determineRelationship being deprecated.