Replace old enum usage.