Good catch on making the route configurable.
Instead of interrogating the router config, which could be different per setup, how about a new configuration option that specifies the route name?