remove unused code and extra fields in the changeSet.toJson