Refactor formatDataFrom, and test for non-existant getters