These sorts of things should be methods, not local variables.