Remove code depending on the cards ui library