fx3_firmware: Moved and renamed ExtractSerial() for better readability