adding applyStaticRoutes to the new visitor pattern.