stbt-record: Refactor reducing duplication
stbt-record: Refactor reducing duplication

This will make it easier to pass a device under test into `record()`.

stb-tester/stb-tester,stb-tester/stb-tester,stb-tester/stb-tester,stb-tester/stb-tester