Deprecate #connection in favour of accessing it via the class