mongo filter cleanup