Clean up environment loading a bit (#28356)

Closes #ISSUE

Release Notes:

- N/A
f0b7f355a2Cole Miller committed on 4/9/2025, 2:16:35 AM· committed by GitHubparentb687a5e
8 files changedLine totals unavailable