FAIMS-819 Merge relationships when merging entities