Issue #2509496 by chx, benjy, phenaproxima: Make migrate process plugins more flexible/less boilerplate