Use meaningful variable name instead of a generic name "data"
Unify and simplify methods to collect routes to "compute_routes"