Finished generalizing card layouts