code: function handlerReducersForType(type:String) {
    let apiActionTypes = getApiTypes(type);
    let reducers = {};
    let namesToState = {};
    apiActionTypes.forEach((key, idx) => {
      reducers[apiActionTypes[idx]] = apiReducers[apiStates[idx]];
      namesToState[upcase(apiStates[idx])] = toApiKey(apiActionTypes[idx]);
    });
    return {reducers, namesToState};
  }
docs: Build the state to names handler reducer and
  the handlers object in one to avoid multiple iterations
  @constructor
  @param {string} type string - the type constant
  @returns {object} object returns with reducers and names