Legal aid set for massive shake-up