Refactoring : Repository eliminated, using GraphDiff for updating detached graph