Move static{} code to an init() method