Removes leftover template logic