pipeline: Create it through a factory

Making it possible to use it with GstValidate LD_PRELOAD feature