Excludes class name when persisting.