Add pragma: no cover for bw-compat code