Would this not be better off as a generic function attached to the nutupane factory?