[TASK] Remove legacy code

Resolves: #58439
Releases: 6.2

Change-Id: I26dcdc0fe0efbe5618c08a08ce08b91ea09fef24
Reviewed-on: https://review.typo3.org/29791
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen