Please remove the duplication in this function by refactoring as follows:    ```  actionPreFilter: function(args){                           actions = ['add', 'uploadVolume', 'uploadVolumefromLocal'];                           if (g_enablemetricsui) {                               actions.splice(1, 0, 'viewMetrics');                           }                           return actions;                       },