necessary modifications to ThFactory for Bsmumu and Bdmumu