ido: Fix timeperiods with more than one segment.
ido: Clean up obsolete handlers.