'Removes feed items from the feed if they do not meet some
requirements like app count.'

def filter_feed_items(self, request, feed_items):

    for feed_item in feed_items:
        item_type = feed_item['item_type']
        feed_item[item_type] = self.filter_feed_element(request, feed_item[item_type], item_type)
    return filter((lambda item: item[item['item_type']]), feed_items)
