Restore OutputCapture.wrap as it's a semi-public API