[refac] refactorization of the processing pipeline so it reuse already existing code