Replace it - it will be quicker and easier, the circuit board has burn marks on it, the fan is v mucky and so probably the bearings are also noisy, and for ~£25-40 you can replace it, fix all of those problems, and it won’t be any harder than rewiring a plug.
Bathroom extractor fan has died. Is this repairable or is it a simple case of remove and replace with like for like?