I rethought this and was able to simplify the code, including getting rid of this function. I obviously wasn't thinking clearly when I wrote it.  I blame eqc fatigue.