The relay is for
retracting the headlights so should be ok to remove/bypass.
The second one is a
resistor pack to do with the Dip/Dim of the headlights. Again it can probably be removed if you remove all the other parts to do with it and plumb the headlights in directly.
Cheers
Stot