First, what is the point of interpolating and to_sym'ing the `name` variable on every call?  If we're going to use a lambda, at least cache that calculation.

Second, in this context `const_name` is a string not a hash.  This code can't run.