Remove unnecessary copying of structures.