Only define constant if it's not defined.

A bit of safety, as @JeffPyeBrook mentioned in #1053