Amazon interview question

How to simplify a complex pipeline?