Description
There is many places in the code where we can use class constants instead of define()'s. This will both improve readability and usage in my eyes in addition to a tiny speed improvement since defines are evaluated at runtime, while class constants are evaluated at compile time.