Structured Handling of Scoped Effects: Extended Version