Support route condensation

This lets us see top queries by canonical type, even if they come from
different hosts.