This PR adds notes to the deprecation warning when the replacement constant has a different type, visibility, and/or namespace. Closes #7993