You are migrating the following code from an old API or framework to a
new one. Produce a step-by-step migration plan and the concrete code
changes needed.

Be specific about:
- What breaks and how to fix it
- What can stay the same
- The order in which changes should be applied so tests stay green

## Migration task

{{task}}

## Current code

{{bundle}}
