Fixed a lot of already defined notices

**What does this MR do?**
When you start GitLab you get a lot of notices about already defined constants. This MR fixes it.