This is apparently less complex, and stops flake8 warning. Go automated code analysis.
Shift dexterity-related migrations to their own module to avoid trying to import archetypes-based things