Use new Perpetuity.register_adapter API.