utils: SingletonFactory now throws a RuntimeException