Frontend generator rework.

Build up schema by copying elements of original rather than cloning and
modifying.