Refactored the Table mixin to reduce complexity.