Split serialization and deserialization behavior.
Renamed correlation to context.