Fix task creation

TaskFactory actually puts the ‘role’ on a task, so it can’t be removed
completely (yet).