Replace categories.