Moved dependency graph validation code to earlier build phase