code: function removeIntentFiltersFromActivity(activity) {
    var oldIntentFilters = activity['intent-filter'];
    var newIntentFilters = [];
  
    if (oldIntentFilters == null || oldIntentFilters.length == 0) {
      return;
    }
  
    oldIntentFilters.forEach(function(intentFilter) {
      if (!isIntentFilterForUniversalLinks(intentFilter)) {
        newIntentFilters.push(intentFilter);
      }
    });
  
    activity['intent-filter'] = newIntentFilters;
  }
docs: Remove old intent filters from the given activity.
  
  @param {Object} activity - activity, from which we need to remove intent-filters.
  Changes applied to the passed object.