A former in-house lawyer for Tesla Inc. and software company Veeva Systems Inc. has taken a new job as the first legal chief for pharma tech startup Apprentice.io, which has burgeoned amid the COVID-19 pandemic.