minor refactoring of the dgraph component