Centralize the copying of attributes in the generator.