Remove duplicate in server instead of in frontend.