[ngramsTable] refactoring

Status Job ID Name Coverage
  Test
canceled #4162
deps

canceled #4163
test