Refactor: use relations.