def columns_from_metadata(query):
    """Return `columns` block from query front matter, if present"""
    columns = None
    if "columns" in query.metadata.keys():
        columns = query.metadata.pop("columns")
    return columns