Refactor parseRoutesList method