Remove duplicate categories function in router.