Refactor common NFC utilities in NfcUtil