Remove redundant method now JSON directly on resources

The raw JSON is directly set onto resource instances so the hacky function to do that in barcodes can be removed.