Convert traits to abstract classes

Traits are not necessary in this context.