refactor: use shallow nesting for routes