def _handle_exp_issues_after_state_deletion(
        state_name, exp_issue, deleted_state_names):
    """Checks if the exploration issue's concerned state is a deleted state and
    invalidates the exploration issue accoridngly.

    Args:
        state_name: str. The issue's concerened state name.
        exp_issue: ExplorationIssue. The exploration issue domain object.
        deleted_state_names: list(str). The list of deleted state names in this
            commit.

    Returns:
        ExplorationIssue. The exploration issue domain object.
    """
    if state_name in deleted_state_names:
        exp_issue.is_valid = False
    return exp_issue