Refactors #frame_type for rbx