Ensure uniqueness of relations.