Common logic for getting typed values from result
Move marshalers outside parsing schema
Compress lines
Looks more readable?