refactored code section template