Cleaning up task targets to prevent conflicts.