Move script graph style to a separate class