96e7aebcb7
I noticed that the list of possible attributes was written out repeatedly, so I'm encapsulating the list in a function.