Note that some of the indirection here is so that I can reuse a few things for mFi switch tests to follow.