Move search query data to the app level to support setting it from route data