Replacing a boiler's safety thermostat