Builds the expanded row-model factory. The returned function is invoked once per Table and produces a memoised getter for the expanded RowModel. When no rows are expanded, or paginateExpandedRows is disabled, the pre-expanded model is returned unchanged.