move constant definitions to central place

Authored by shentey on Jan 14 2018, 5:25 PM.