Replace host with dev flag.
Reduce redundant code in arena stuffs.