refactoring
Switching libraries/frameworks or switching piecemeal to a new language for a codebase that's already well structured seems like it would be noticeably less costly though.
Replacing something with something else isn't a refactor to me, a refactor implies a structural change not a wide surface level change.