I think we can get away with ``get_fields`` taking the class rather than
the object instance? Not sure how important this is.