registration: Overhaul merging of globals