DRYing table panels elements count limiting