Use singleton pattern recognized by the analyzer.

The analyzer was issuing a warning for a leak when using
+initialize to implement the singleton pattern. Use the
more conventional dispatch_once in sharedInstance method.