Extract switch event handling routine into always running TeclaService