Split out actions from task.py