Change templates to native inheritance (remove dejavu dependecy).