Factorize grep -v cases.