Move flow paths to serialization