Refactoring in Data.Aeson.Types.Generic