Moves shared connection setup to a before all block so that it properly sets up a connection