Revert "Fixed deprecated methods usage"

This reverts commit 07c13adf4889dda4ab55b3a20b2fd607f8d1e3d6.