Converts a chain of Stream.filter calls into one filter call with a conjunction condition.