once he had allied with or defeated all the dukes , he abolished the original kingdoms , divided the land into the current districts , established a system by which land owners elected their leaders , and dismantled most of the military forces .