Rewrite the entire damn thing to make it testable as well as publishable/documented. Only a single user creation is used.