Just packing some serialization complexity away into its own thing, so the model code doesn't need to sweat it!