JAL-3490 extract constants for number of rows in layout