.. Just get a new 'smart' WiFi fan.
You can get a Hunter ceiling fan with their 'SIMPLEconnect' (Alexa, Google, Homekit) for under $150 and you'll never have to mess with a remote again.
Alexa, Set my fan speed to 50%
Hey Google, turn on my fan light.
Siri, reverse direction on my ceiling fan.