reorganiz lav_tables_*.R functions (part 1)