examples: fix up route-separation code

closes #2341