There is dead code after we require pyarrow >= 15.0.0
There are code lines specific for pyarrow versions < 15.0.0.

However, we require pyarrow >= 15.0.0 since the merge of PR:
- #6892

Those code lines are now dead code and should be removed.