Adapt QgisAppLegendInterface::moveLayer to legend tree