Extract replay connection methods into extension methods.