refactor-remove instance var 'cards' from factor.