Move #whereAll/Any to logic module.