refine route structure.