So one idea - why not make this `maxFrameSizeBytes` (i.e. do the byte conversion inside of here) and also use the same code inside of `Executor.scala` in place of the thing that's there now. Then we have a single code path for doing this every time.