refactor the Socrata class.