I guess here is the difference. I suspect a lot of the logic could be simplified by just using `expr.xreplace(model)`, though.