refactor routes with scopes