Make template classes consistent.