removing a lot of duplication in the code that checked EMAIL_ALERTS and EMAIL_FREQUENCY. extracted it to the core.warn_the_good_guys method