How to move the role dropdown to the top of the form

If you want to move the role dropdown to the top of the registration form, add this code to an wp-content/mu-plugins/ file (eg. wp-content/mu-plugins/wpum.php) or your theme's functions.php file: