Instantiate static members in initializer

According to plugin guidelines moved construction of static members to plugin initializers to avoid errors being report when other plugins are loaded.