Pruning unused routes