refactor CachedCard+assigned to