function historyAPI(method) {
  return (...args) => ({
    type: HISTORY_API,
    payload: {
      method,
      args
    }
  });
}
Creates an action creator for calling a history API method.
@param {string} method - Name of method
@returns {ActionCreator} Action creator with same parameters as corresponding
history method