Identification of two sources of carbon monoxide in comet Hale–Bopp