Split ruby state up