Simplify repetitive logic with sub flows

Create a sub process flow within a process flow to simplify repetitive logic.