Refactored PostProcessing class, got rid of nested if statements and introduced NullObject pattern and inheritance to PostProcessingAlgorithm classes