Convert dsl objects to traits