Use some code to generate the exprs in model.py instead of copy/paste
Attempt to further reduce copy/paste in model.py