Code review PR

You might consider just putting these helper function in your `BaseRelation` if they won't be used elsewhere.