I'm a bit worried about traversing the list twice. Most route files are small enough, I agree, but there must be a more efficient way to find two consecutive tokens. Maybe `sliding(2)` would do it?