Refactor getEditableRelation + Add comments
Use Either to make getEditableRelations way more elegant

Kind of silly I missed this at first. The algorithm is much cleaner now, and doesn't need fatals anymore.