Remove usage of memoize.