Write_Blueflood cleanup

I don't think there's any need to copy this function into write_blueflood.c. It is identical to the one in utils_format_json.c.