Extracted pipeline creation into custom method.