def convert_corr_id(corr_id):
    """
    This method converts the correlation id into an integer that is
    small enough to be used with a modulo operation.

    :param corr_id: The correlation id as a String
    """

    # Select the final 4 digits of the string
    reduced_string = corr_id[-4:]
    reduced_int = int(reduced_string, 16)
    return reduced_int