This should instead be a yml parameter config shouldn't it? So we can configure this cleanly in our prod config, and any other environment we want to enable it in.

And the config should btw be documented, reading this piece of code to understand the config was a horrible experience... :)