Abstracted createHasOneRelationship
Added switch for relationship type
Build