Remove uses of deprecated APIs

Depends on atom/atom@a6f31ed79192cba8f1509a819fd2689e3f050c93 being released.