Cleaning up redundant code and long lines

in doPostProcessing()