Musk’s legal battle with Twitter spotlights platform’s ‘messy’ infrastructure: Tech expert