CLN: Deduplicate code in duplicated (#49550)
CLN: Deduplicate code in duplicated (#49550)

* CLN: Deduplicate code in duplicated

* Clean

* Fix
pandas-dev/pandas,pandas-dev/pandas,pandas-dev/pandas,pandas-dev/pandas