Refactor complex models into individual files.