The 2017 BMW S1000R stock headlight is contains a halogen bulb. When upgrading the bulb to an LED, the existing cap does not allow the LED fan or ballast to fit, so people usually destroy the OEM cap.
This model is a replacement that includes a hole for the protruding fan, allows airflow, and has slots for cable ties to fasten the long cable and ballast.
File is a freecad model.
Update Nov 24 2018: V6 has larger holes to allow easier removal of infill, and STL file is much higher resolution now.