Replace deprecated constant with recommended equivalent.