Remove uses of deprecated APIs

:warning: WIP. depends on atom/atom@a6f31ed79192cba8f1509a819fd2689e3f050c93 being released :warning:
Whoops; no, thanks.