Refactoring: create analytic module for each model.