Remove trailing comma in enum list.