Unit setting and test mode setting Backbone tweaks

Only used in one place, and consists of a single function call, so I extracted it.