Implement add and remove for relations.