refactoring GreenTeaRuntime