Extract typed environment variable helpers
I'm still not sure this is a good idea but these helpers should make parsing typed environment variables more consistent.
The goal is to make fetching a typed environment variable as simple as possible so we always do it the same way. The helpers need to have errors that can be ignored, so I have made the fallback value explicitly defined.
I specifically wanted something to resolve this thread !3554 (comment 594123951)