File hosting company Dropbox announced it would cut 20% of its employees this week as it restructures around artificial intelligence.