Slack's decision to focus on its workplace productivity tool turned out to be one of the smartest pivots in the history of business.