Pass something through a sieve ("sieve, sieve") to filter and select the contents. It is also used figuratively for "separating or discriminating the bad from something".