Lazy-loading ref and maybe_ref
Rearchitecture OAuth client