def prepare(data):
    """Restructure/prepare data about merges for output."""
    sha = data.get("sha")
    commit = data.get("commit")
    message = commit.get("message")
    tree = commit.get("tree")
    tree_sha = tree.get("sha")
    return {"message": message, "sha": sha, "tree": {"sha": tree_sha}}