Other times classes are retrofit because they are no longer needed in warfare, due to changes in tactics. For instance, the  was an aircraft carrier converted from a collier (coal-carrying ship to supply coal-fired steamships with fuel) of the Jupiter-class.
Classes are sometimes repurposed because they lose relevance in warfare as tactics evolve. For instance, the  underwent a transformation from a collier to an aircraft carrier of the Jupiter-class.