Shorten add_named_route by only calling it when needed