Store the feature's commonly used id

To not clobber the feature's attributes, this is a separate
member property.

This is an alternative approach to #724.