Refactoring private class variables