def _trim_path(file_path, base_path):
    """Trim a path by removing a prefix.

    Args:
        file_path (str): Path.
        base_path (str): Prefix to remove.

    Returns:
        str: Trimmed path.
    """
    if file_path.startswith(base_path):
        return file_path[len(base_path) :]
    return file_path