module.exports = {
  isOneToOneRelation: function (relation) {
    return relation instanceof relation.ownerModelClass.OneToOneRelation;
  },

  throwError: function (message) {
    var error = new Error(message);
    error.statusCode = 400;
    throw error;
  }
};

module.exports = {
  isOneToOneRelation: function (relation) {
    return relation instanceof relation.ownerModelClass.BelongsToOneRelation;
  },

  throwError: function (message) {
    var error = new Error(message);
    error.statusCode = 400;
    throw error;
  }
};

Refactor properties that have been deprecated
Refactor properties that have been deprecated
