Refactor ConnectionHelper

Streamline the connection initialization sequence