Topic refactor cell size

Rename to `cellSize` to stick to our naming conventions for variables.
Double-used and self-defined variables with similar names have been replaced with the compile time constant.