code: function createKeyVal(key, value) {
      return {
        key,
        val: (typeof value === 'function')
          ? function (bidResponse) {
            return value(bidResponse);
          }
          : function (bidResponse) {
            return getValue(bidResponse, value);
          }
      };
    }
docs: factory for key value objs