How to clear the REPLACEBATT state from APC UPS after hot-swapping the battery
To clear this status one needs to run the self test using the Test button on front panel.
You have to run a valid self test for the LED to clear. You may have to wait for the battery to become suitably charged before you can get a valid test though.
There is some information here about it.