Separate out task related structures into task.go