Move Card Tokenization Handler outside of main function