ProcessRootCategories function removed