Remove code relating to old serialization format