This looks ripe for generalization (I haven't looked around for what other ad hoc variations of this are being performed, but I will bet my sweet bippy they're out there.) Not necessary for this PR, just throwing it out there.