Remove unused methods.
Proper escaping in {Query,Filter}Model::asXML().
Rely on RAII.