Factor out switch handling to separate file Add formal enum for toggle action Implement binding actions