Refactor common code into a generator

Each of these modules had the exact same code with one string changed.  This moves all of this code into a common generator, then refactors all of the transforms modules to use it.
Not sure what I was thinking here -- this doesn't actually do what I wanted it to do.  Should be some version of a `title`-like function or just use what's passed in.