Call routing using CID Name Prefix

We have inbound routes that set CID Name Prefix. All routes point to a Call Flow Toggle Control, which normally points to a string of Time Condition checks, the last of which has a time match destination pointing to a Queue.

We now have a need to route calls to different queues based on the CID Name Prefix, but I can’t figure out how to do this from a Time Condition. At an earlier business, we had a Custom Destination and some hand-tooled scripting, but I do not have examples of this to draw on, and would prefer to manage all routing via the GUI.

Any recommendations greatly appreciated.