This could be simplified as:

```javascript
var label;

switch(id){
    case 'filehistory':
         label = 'history';
         break;
    /* ... */
    default:
         return;//this in case we expect id values different than the ones listed in each case
}

options.push({label: label});
track.event.apply(track, options);
}
```