Merge "[Thread] Replace the "ot-ctl factoryreset" with the java leave() API" into main