public HopSpec removeHop(int i) {
        return hops.remove(i);
    }
Removes the hop spec at the given index.

@param i The index of the hop to remove.
@return The removed hop.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTableSpec.java