refactored my original implementation of make_bitfield_tuple into a free function rather then a struct