Weird use of the WARNING_CONSTANT here (see below),

use custom constant:
`self.WARNING_THRESHOLD` (using the example below)