Avoid promaturely destracturing method/model in codegen functions
Avoid promaturely destracturing method/model in codegen functions

This makes them a little more encapsulated (a calee doesn't need
to know what parts of the model they need).

f-f/gogolica