Remove old internal TYPO3 function and replace them with new one