Converted the dependency into a singleton.