Go directly to the end of this gist.
Recently i came across this streamlit issue: streamlit/streamlit#6389 .
I don't know why this is implemented in such a way, Author could have try to get values firstly from config, and if not set then assign default.
Just because you sell one version as community-edition, doesn't means that you'd follows bad practices. Now, here we're trying to fix dirty issue in dirty way.