def build_hit_qualifications(self, approve_requirement, restrict_to_usa, blacklist):
        """Translate restrictions/qualifications to boto Qualifications objects

        @blacklist is a list of names for Qualifications workers must
        not already hold in order to see and accept the HIT.
        """
        quals = [
            {
                "QualificationTypeId": PERCENTAGE_APPROVED_REQUIREMENT_ID,
                "Comparator": "GreaterThanOrEqualTo",
                "IntegerValues": [approve_requirement],
                "RequiredToPreview": True,
            }
        ]
        if restrict_to_usa:
            quals.append(
                {
                    "QualificationTypeId": LOCALE_REQUIREMENT_ID,
                    "Comparator": "EqualTo",
                    "LocaleValues": [{"Country": "US"}],
                    "RequiredToPreview": True,
                }
            )
        if blacklist is not None:
            for item in blacklist:
                qtype = self.get_qualification_type_by_name(item)
                if qtype:
                    quals.append(
                        {
                            "QualificationTypeId": qtype["id"],
                            "Comparator": "DoesNotExist",
                            "RequiredToPreview": True,
                        }
                    )
        return quals
Translate restrictions/qualifications to boto Qualifications objects

        @blacklist is a list of names for Qualifications workers must
        not already hold in order to see and accept the HIT.