Refactor addNestedBlockToNestedTable