Thoughts on making this a helper method?

```js
key = getKeyForAttribute.call(this, attr);
//
function getKeyForAttribute(attr) {
 return (this.keyForAttribute) ? this.keyForAttribute(attr) : attr;
}
```