Complex sentence: The units were almost exclusively used on London St. Pancras to Bedford commuter services, which earned the class the nickname "Bed-Pan" units.
Split into simpler sentences: The units were almost exclusively used on London St. Pancras to Bedford commuter services. Therefore, this earned the class the nickname "Bed-Pan" units.