Made match_routing a class method, so that it can be called from outside (useful for building authorization around Grack).