Break route patterns into segments; associated refactoring.