Avoid having nasty pest on team (8)
I believe the answer is:
Here is my best explanation:
'avoid' is the definition.
(sidestepping is a kind of avoiding)
'nasty pest on team' is the subsidiary indication.
'nasty' is an anagram indicator.
'on' is a charade indicator (letters next to each other).
'team' becomes 'side' (I've seen this before**).
'pest' is an anagram of 'step'.
'step' put after 'side' is 'sidestep'.
'having' is the link.
(Other definitions for sidestep that I've seen before include "Dodge (an issue?)" and "Dodge - circumvent".)