Refactoring code to manage patterns merging. Added parenthood to the merged pattern for all the cases