#45846 and #46013 shows that using auto-configuration isn't ideal. Instead we think this code should probably be in an `EnvironmentPostProcessor`.