Created RepeatingAlarm interface and divided RepeatingAlarmController class into two.