Move canDeleteRelation method to relations handler.