Patch lookups to not use closures, so that they can be overriden.