No, it is kind of what I'm saying. More hamfisted than I'd like, maybe, but along the right lines.
My point is that an extra layer of in-house code is an extra layer to build and maintain, even if it doesn't do anything meaningful. Ideally it could be eliminated altogether, but automatically generating it still relieves most of the development overhead.