Move method outside inner class.