At this point I think this functionality should be moved into another file, since they're not limited to the domain-specific language we're making with Scalding. Eventually this sort of utility code could even go in another project of tools for Scala developers (but another file in this project is cool for now).  Can we make a utility class or object to hold this functionality?