Since the only places where you're using APZ is to check if it's disabled I would rename this function useSyncPanZoom or something similar and make it returns the invert of what you return currently.