Remove discourse constants (PR #9958)

Here’s a few of the easier ones to remove from our codebase.

GitHub