`formats` should be a class variable

Should've tested before merging :)