Why calling this twice? It's already called in `getRouteByName()`.