Koji Smoky Dingo provides commands which can be used to create scripts out of a sifty sieve filter.
koji unset-rpm-macro
ksd-filter-builds