Improve the bool filter construction in filterSrv