Clean up continuous query regex matching and fanout.