The system needs to be replaced or modernized when:
the technology it was built is no longer available
system performance or functionality is no longer adequate
a further enhancement would require more investment than creating a new one from scratch.