Remove deprecated calls to flashMessageContainer->add
Replace deprecated t3lib_BEfunc with \TYPO3\CMS\Backend\Utility\BackendUtility