starts refactoring alerts into a service