refactor: cleanup priority queue size handling