Removing duplicate categories.