Move utilities from core to http.