Move message serializer stream into its own file.