Splitted the bounce headers extraction function, so as to ease testing

The bulky and redundant code in ProcessBounceWithRegex and
ProcessBounceWithPlancake was divided to tidy functions

Change-Id: Ifed586b5877bc08121e738feb977dbae25bf78b9