Code for a functional plugin with reposition of primary navigation

<?php
/**
 * Plugin Name: Functional Plugin
 * Plugin URI: https://christophherr.com
 * Description: Functions for functions.php
 * Version: 1.0
 * Author: Christoph Herr
 * Author URI: https://christophherr.com
 * License: GPL2
 */


// Function to remove the primary navigation from its original place 
add_action( 'get_header', 'ch_remove_nav');
function ch_remove_nav () {
remove_action( 'genesis_after_header', 'genesis_do_nav');
}

// Repositioning the primary navigation to a new place
add_action( 'genesis_before_header', 'genesis_do_nav');