Crossword Genius

I'll dismiss judge in case of ecocide - court in uproar after union's barred (7)

Ross

I believe the answer is:

ejector

I'm a little stuck... Click here to teach me more about this clue!

'ecocide court in uproar after union's barred' is the definition.
I can't tell whether this defines the answer.

'i'll dismiss judge in case of' is the wordplay.
I cannot really see how this works, but
'dismiss' could be 'eject' (I've seen this before) and 'eject' is located in the answer.
'of' could be 'o' and 'o' is found in the answer.
A single letter 'r' remains which might be clued in a way I don't see.
This explanation may well be incorrect...

Can you help me to learn more?

(Other definitions for ejector that I've seen before include "A bouncer" , "Something that throws out violently" , "Expulsive device" , "Something or someone that throws out" , "Someone supplanting another" .)

I've seen this clue in The Independent.
Want a hint initially instead of a full solution? Install my app