Factored out connection