export function reset(routes, key, index) {
  if (!key) {
    throw new Error('reset requires key argument');
  }
  return {