Consistent alerts container creation

- Moved alerts container creation to service layer.