Move 'parse_mykad' function to the library