Small refactor on init_tbl_data