message: Factor out history replacement function
diff: @@ -1285,10 +1285,7 @@ Raven.prototype = {
  }
  };
  - fill(
  - history,
  - 'pushState',
  - function(origPushState) {
  + var historyReplacementFunction = function(origHistFunction) {
  // note history.pushState.length is 0; intentionally not declaring
  // params to preserve 0 arity
  return function(/* state, title, url */) {
  @@ -1300,11 +1297,11 @@ Raven.prototype = {
  self._captureUrlChange(self._lastHref, url + '');
  }
  - return origPushState.apply(this, arguments);
  + return origHistFunction.apply(this, arguments);
  };
  - },
  - wrappedBuiltIns
  - );
  + };
  +
  + fill(history, 'pushState', historyReplacementFunction, wrappedBuiltIns);
  }
  if (autoBreadcrumbs.console && 'console' in _window && console.log) {
  