Remove use of deprecated methods

see WoltLab/WCF@257405df08d7e6307de59ad8c835ae3daa489350