remove duplication of someValidCell calculation