Refactor Duct template source file
Update template task docstring