Needed after the new Threat system (cherry picked from commit e12e0ad5827d7e794baa630724069680d7e07cfb)