delete query.{tg,emf} namespaces and merge them in {tg,emf}.  Make reachables generic and move it to query.