First shot at extracting common structure
Refactor common logic between test & classifier
Cleanup
Rename types
Transform RecordExpr to record type
Move types to appropriate files
Finish renaming
Rename arg
Simplify RecordStubsInsertionPosition
Factor out some logic in walkExpr
Merge pull request #439 from OkayX6/eliminate-record-gen-dup-code

Deduplicate record stub generation logic