Changing the organization of the code so that the route matching happens elsewhere.