Migrating template matcher to repo module; deprecating old classes.