Change function definitions to remove redundant calls to connections.cellsForColumn

Fixes #1259.