(maint) Split data part of to_pson_data_hash into to_hash
WIP: extract serialization methods