Refactor dc segment manager