State and Action Factorization in Power Grids