Can this be replace by a single global variable?...  And when it needs to be cleared, set it to `None`.