Refactor in local registration.