DRY up src/routes/pages.js.
Merge pull request #3554 from Gaelan/dry_routes

DRY up src/routes/pages.js.