Refactoring model objects to its own module.