Refactor rth_babel