Comment out @JsonTypeInfo.skipWritingDefault since it won't be supported in 2.5 yet