Refactor different RelationEditParts to one RelationPart, switching on
RelationType enum