Modification to Registration page

I'm running WP 3.0.1 with MS enabled and BP 1.2.6. I want to modify the registration page to only allow users to register blogs off of the primary site and not the network sites. What is the best way to do this and avoid my changes being overwritten by upgrades?