don't define constants in a method that's called multiple times
don't define constants in a method that's called multiple times

Change-Id: I6b2c0fcaca149681e4e0bc10b0209c55fc42491c
Reviewed-on: https://gerrit.instructure.com/56351
Tested-by: Jenkins
Reviewed-by: August Thornton <9adc7a1161ddf32ff608de792a7e50179545f026@instructure.com>
QA-Review: August Thornton <9adc7a1161ddf32ff608de792a7e50179545f026@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

beyond-z/analytics,instructure/analytics,instructure/analytics,SwinburneOnline/canvas-analytics,SwinburneOnline/canvas-analytics,instructure/analytics,whalejasmine/analytics,whalejasmine/analytics,beyond-z/analytics,SwinburneOnline/canvas-analytics,beyond-z/analytics