Exchange route name splitting code against something more performant