Query Transformation and Routing: Fixing Retrieval Before It Runs