Remove static from duplicateSingleton