Have you thought about just switching the positions of the Primary and Secondary Navigation? Would be simpler to keep them all in the Primary and just re-order their positions in the Customiser.
If not then this article explains how to switch the navigation search to secondary nav.