Instead of static fields, put @Extension and turn relevant static fields/methods into an instance method.