AlarmReceiver refactoring