Refactored dsl specs
Deduplication feature and draft implementation