Moving static variable out of method into class scope