Frappe Hooks.py overriding permission_query_conditions

Hello, I am currently attempting to modify the permission_query_conditions of the Communication doctype within the hooks.py file. Within the hooks of my custom application, I have implemented a custom function to handle the permission_query_conditions for the Communication doctype. However, it appears that instead of overriding the core list query for communication, my custom function is extending it, resulting in both functions being executed. Is there an alternative approach available to address this issue?