Separate the implementation of task-check function from bf-task.c