Clean up task dependencies