Remove unused variable self.registry