Moved to using helper lambdas to avoid code repetition. IR needed to be reordered to
accommodate which should be the only changes to the existing tests.
This changes the quantized test to target i48 types to guarantee types are extended
correctly when necessary.
[nit] May as well just move this to the top alongside other refactoring.