Remove use of deprecated methods

see see WoltLab/WCF@257405df08d7e6307de59ad8c835ae3daa489350