Data treatment towards the ELT age. The ESPRESSO case