Remove unused method and pass in connection object