Refactored to encapsulate the card formatters and move conditional switching to static configuration instead.