Extract statistics serialization into a new file.
Extract make_order into a new file.