refactor DSLReader / extract dependencies