Remove duplication in CLI from Config

This particular snippet was creating a "hotspot" in code climate as identical code.