Move RouteMatcher to ext and make it an interface