Use lambda to call return from a migration
Prevent nested blocks in migration