Move initialization to getInstance() method of Singleton.