Refactored EclipseWriter to make it possible to support CpGrid.