Get rid of useless Mark
Dedent foldPrimQuery