Extract environment variable logic into `envconf`.