CMS-1211 Refactor common relationship creation logic into own service