build: changing toc_builder to use table_builder infrastructure