Extract some common bits into a utility base class.