Clean up TemplateTool.getDependencyList()