Thanks. I'd rather replace it or remove it completely.
If this is just a filter then I could theoretically just replace the burned windings with a thick wire at the cost of introducing some noise into the mains?
Update a day later:
Unsoldered it, soldered two thick wires instead, it's working fine.