Not sure if anything else does this, but I'll add to `utils` under a good name for the future.