Revert "[St][Cleanup] Don't use deprecated functions:"

This reverts commit 864b151f0ba588115bdc872066e3a331b3ce7006.