Extract 2d array handling into private class