An extra nine lines and extra runtime complexity just to avoid putting it in a comment.
But a sibling comment [0] did provide an example that would give a much simpler approach to accomplishing the same thing in this particular instance, with zero extra lines and runtime complexity.