How can the independence of the Election Commission be ensured in a politically charged environment?

Recent statements have questioned the neutrality of the Election Commission. I want to understand what mechanisms can safeguard its autonomy, especially during elections.