Refactor Python models into modules We explore two aspects of refactoring an existing optimization model: Modularization and adding model variations.