Well, my understanding of the docs is that it is a *function* that *returns a constructor*, rather than being a constructor itself.  Naming of most other functions in our code is <verb> + <noun>...  Actually, `getRecordConstructor` would probably be better.

I'll leave it up to you :-)

More importantly, we really need to think about splitting this file up a bit...