I use the boost::hana to_map function to remove duplicates from boost::hana tuple of types. See it at the compiler explorer. The code
boost::hana
to_map