Separated spy graph from utils to a new class.