Implement migration from 2 to 3
Separate output as a variable
Remove unused line
Add migrate_spec
Add examples