/**
* Template method called from self::manipulate.
* Flatten each data table.
*
* @param DataTable $dataTable
* @return DataTable
*/
protected function manipulateDataTable($dataTable)
{
$newDataTable = $dataTable->getEmptyClone($keepFilters = true);
// this recursive filter will be applied to subtables
$dataTable->filter('ReplaceSummaryRowLabel');
$this->flattenDataTableInto($dataTable, $newDataTable);
return $newDataTable;
}