Remove references from task statuses when changing between task statuses