These motorsickle mufflers illustrate the four basic principles.
First, tuck the offending object in under the streamlined body if you can. It cannot be seen from the photo, but the short glass pack tucks in better than the Arrow muff.
Second, align the object with the air flow. The Arrow muff is upswept and the glass pak is almost horizontal. The glass pak is better aligned with the horizontal air flow direction.
Third, reduce the object's frontal area. The glass pak has less frontal area than the Arrow muff. This is good.
Fourth, shape the object as best as possible. The Arrow muff has a very non-aerodynamic reverse cone shape. The glass pak has about as good a shape as can be gotten.
These are not car exhaust parts. They illustrate the basic principles.