Refactoring enums from segment.js into a separate file, enums.js.