Refactor memoized instance method creation to be simpler