Cleanup in writeVariable/writeFunction implementations