Extracted class CellFactory from LiveCell.