[TASK] Use templateRootPaths, partialRootPaths and layoutRootPaths

Resolves: #57800
Change-Id: Ic74bcbe6c694d83c29b8d6124d1e0e3a33bec5bd
Reviewed-on: https://review.typo3.org/29327
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer