def get_threat_component(components, threat_type):
    """
    Gets a certain threat component out a list of components
    Args:
        components: List of threat components
        threat_type: Type of threat we are looking for

    Returns: Either the component that we asked for or None

    """
    for component in components:
        if component.get('name') == threat_type:
            return component
    else:
        return None