Simplify RecordStubsInsertionPosition
Factor out some logic in walkExpr