Removing old registry code.