Move constants outside of the draw callback