Factorise code and gather it in createRowDefinitionByIndex() and createRowsDefinitions()
Merge branch 'features/optimise-row-definitions-generation'