Take it out, repaired and replacing it = replacement in my engineering understanding.
In my understanding of "replacing it", it means to replace it with an item that is not the original one (exchange repair or so)
If it is the original it would be: removal, repair and finally
refitting