Replace deprecated enumerators.