[refactor]Extract workbook functionality.