Copy the value out before erasing here.