It does not use a distinct routine sadly. Every script I use that might require a routine used in more than one place, gets an alias with the routine. In fact, I often make such routines anyway just to give me the freedom to do that in the future if I decide I may want to use it else where later. Those routines greatly increase readability of a script anyway.