For the sake of ensuring everything that's required to be created when a pilot registered is created, I would just do:
$data = array(
'firstname' => '',
'lastname' => '',
'email' => '',
'password' => 'New123',
'code' => '',
'location' => '',
'hub' => '',
'confirm' => false);
RegistrationData::AddUser($data);
(Obviously filling in the rest appropriately).