Leveraging spatial functions