Refactoring of the graph-resource into a singleton