Remove unnecessary inclusion of task header file

TODO: Find a better place for post_task_with_handle() function.