Clean up struct writer funcs.