SIGN IN SIGN UP

refactor: Remove duplication for getting API env variable value (#16235)

#### Summary

Follow up to https://github.com/cloudquery/cloudquery/pull/16230 with some more cleanup

<!--
E
Erez Rokah committed
6aba591d203062fdeb12d08abdaeafdb8122ea97
Parent: 9379d53
Committed by GitHub <noreply@github.com> on 1/23/2024, 1:38:45 PM