Improve configuration of Segment.io gem