Move common schedule update tasks to update function

Should have all the schedule update tasks in one place for easier
maintenance.

Signed-off-by: Greg Meiste <greg.meiste@gmail.com>