code: function removeOldOptions(manifestData) {
    var cleanManifest = manifestData;
    var activities = manifestData['manifest']['application'][0]['activity'];
  
    activities.forEach(removeIntentFiltersFromActivity);
    cleanManifest['manifest']['application'][0]['activity'] = activities;
  
    return cleanManifest;
  }
docs: region Manifest cleanup methods 
  Remove old intent-filters from the manifest file.
  
  @param {Object} manifestData - manifest content as JSON object
  @return {Object} manifest data without old intent-filters