modularizing the table-of-contents-to-checklist converter