Templates and refactorings, oh my