Remove untestable connection setting code