Refactor favorite card mapping.