legacy software costs