Move maintenance creating parsing logic into it's own function, so create_scheduled_maintenance and create_unscheduled_maintenance are only dealing with unix timestamps