Extract EDITSECTION_REGEX and renderDebugInfo to DefaultOutputTransform
Follow-up to I312f3748ebfb0373ee3542ba0abdeefe7db1d488
Bug: T348253 Change-Id: Ia5f7108b3d27ad27785cbc5fca6486634a8c8849