Extract hierarchy for DAO