Feels like this method should live in the serialization package.