Refactoring: merge Model and ActiveRecord.