It was Tenmu who commissioned the compilation of the Kojiki and Nihon shoki, enabling the establishment of new official genealogies, no doubt favoring the local chieftains who had come over to his side in the Jinshin War
So Tenmu became emperor and immediately used religious practices to get his supporters to the top of the chain?