Refactoring: Moved fields inside method.