Refactor data model to cells with links to their neighbors.