BACKLOG-1033 Moved hashing of attributes from consent model to factory to keep consent model clean