Define constants once

Avoids warning messages