[Prettyprinter] Simplify code that partitions attributes.
[Prettyprinter] Simplify code that partitions attributes.

chenglou/reason,let-def/reason,chenglou/reason,let-def/reason,facebook/reason,facebook/reason,facebook/reason,chenglou/reason,let-def/reason,cristianoc/reason,cristianoc/reason,cristianoc/reason