Encapsulated render pipeline in new class Pipeline