TaskTemplates: Removing duplicates when saving task_sessions