[TASK] Cleanup extra_page_cm_options

Cleanup the code in extra_page_cm_options

Change-Id: I324115dae3514cc7b6f4ea350d244d13a3f6d818
Resolves: #45096
Releases: 6.1
Reviewed-on: https://review.typo3.org/17952
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn