Improved pattern construction in route implementations.