Removing duplicate categories