Sorry I missed what you are trying to emphasize.
To make my point more clear; we know India is an enemy state, India attacks Pakistan using all means possible from Eastern as well as the Western border and does lobbies against Paksitan wherever it can.
In the past, India had leverage over Pakistan through its terrorist proxies operating in Karachi, Baluchistan and FATA. Not anymore. The only left opportunity it has to distress us from the hind border is now in Afghanistan and India can use Afghanistan because of American presence/approval/shelter. If Pakistan helps USA leave Afghanistan using all means possible, Indian influence in Afghanistan will dry out. You may disagree with this aspect but let us know if this what you mean?
Now once Pakistan's back-border is secure, every future skirmish with India will be easier for Pakistan. That is my thesis - and to achieve such a security situation Paksitan must first act in Afghanistan and secure it using all means possible. That is the first step I suggest Pakistan take.