This code should have been relocated to notifications/processor.py