The allocation of discovery costs and the foundations of modern procedure