Revise code to remove TYPO3-specific function calls