Future Proof Legislation on Connected and Automated Driving