route/pattern/Pattern.js: minor refactoring