You can replace it. You’ll have to take the fan down, make sure the power is off. take off the switch and take it with you to the local hardware store or homedepot, make sure you know what wire goes where… make a note of it, so that you can put it pack the same… good luck