Refactor copy\pasted StatsController
Refactor notification controller\service.
Fix