Gets rid of unnecessary template file duplicates.