Extract the checking of "config for env"
Extract the checking of "config for env"

Having it in just one method means we can re-use it.

Co-authored-by: Nony Dutton <e20ce61de4f59b9a9d439bdd011ff27cb6def703@zendesk.com>

zendesk/active_record_shards