Refactor away rarch_main_idle_iterate