Refactor rutas