Remove use of deprecated APIs

Depends on atom/atom#4478 being released.