Move this down into `then` too, let's not share anything we don't have to.  DELETED_FILTER is only used there, so make it local.