Refactored anonymous inner class for emailSectionHeader to an external class.