Use traits instead of inheritance in TableFragment