refactor(functions): remove calls to deprecated core functions