Moved PipeModel creation to a Factory. Models are now passed to views during initialisation.