DEV: Fix warning about already initialized constants (PR #13202)


I know alot of places in our code base does this but I’ve always felt that this fix isn’t right. Instead, we should figure out why the class is being loaded twice.

@tgxworld I updated the PR. This fixes it for me as I’ve only seen the warnings in my dev environment. The piece of code I removed doesn’t seem to be needed anymore.

@gschlager Thank you! The fix looks good to me :+1: