Slight cleanups to the Connection class.

Remove a bit of code duplication, clarify a scope operator.