Remove extraneous relationships.