Fixed #23950 -- Don't call deconstruct on classes in MigrationWriter