Where to put create a schedule?

My Fibaro Dimmer 2 DTH has a schedule to manage the nightmode feature. I encapsulated the unshedule() and schedule() calls in a private helper function manageSchedules(), which I decided to trigger from the updated() method, as the user needs to set a time for the schedule in the settings page and updated() runs after any settings are saved. There’s no harm in calling it from the installed() command too, which is run after the device handler is installed.