Make this code nicer : class ViewsAddressQueries(graphene.ObjectType):
    views_primary_address = graphene.List(
        ViewsAddressType,
        objType=graphene.String(),
        identificatie=graphene.String(),
        description="Find addressable objects via address data.",
    )

    @staticmethod
    def resolve_views_primary_address(self, info, **kwargs):
        """Returns Primary BAG data"""
        identificatie = kwargs.get("identificatie")

        queryParams = {
            "identificatie": identificatie,
            "typeAdres": "Hoofdadres",
        }

        endpoint = "bagzoek/bagzoek"
        response = get_address(info, endpoint, queryParams)

        try:
            response = response.json()["_embedded"]['bagzoek']
        except ValueError as e:
            raise GraphQLError("You have no rights to the BAG") from e
        return response Write your response with at least 200 words.
user