[PD-519] Tables to cards

For review, still need to fix tests.