Remove unused categories.