def METHOD_NAME(sender, instance, **kwargs):
    from olympia.addons.tasks import index_addons
    if kwargs.get('raw'):
        return
    if instance.collection.listed:
        activity.log_create(
            amo.LOG.REMOVE_FROM_COLLECTION, instance.addon, instance.collection
        )
    kwargs['addons'] = [instance.addon]
    Collection.post_save(sender, instance.collection, **kwargs)
    if instance.collection.id == settings.COLLECTION_FEATURED_THEMES_ID:
        # That collection is special: each add-on in it is considered
        # recommended, so we need to index the add-on we just removed from
        # it.
        index_addons.delay([instance.addon.id])