migrate to lib/tasks