Deprecate the entire file -- the class deprecation is not working here.

Not working meaning: no deprecation warning is given.
Do not include header "genericreferenceelements.hh"

It is not used.