In what ways can the Supreme Court regulate the Election Commission’s discretionary powers without undermining its independence?

The Supreme Court says the Election Commission’s discretion should not be 'untrammelled, unregulated'. I am curious about the balance between oversight and autonomy for constitutional bodies.