Nuke some non-query functions and fix stablepages/qualitypages.