reintroduce DEACTIVATE constants and handling for back-compat