Move to_underlying to libsupport.