code improvements for StaticRouteValidator