Refactor static initializer.