Fix methods to use the executeWithReplication operationMetadata correctly