Prepare the duck legs by removing any excess fat, piercing the skin all over with a skewer and seasoning well.
Place a casserole dish on a medium heat and sear the duck legs gentry skin-side down until the fat has rendered. Turn the legs over and sear the other side until golden brown, then remove the duck from the pan.
Carefully pour off the excess duck fat from the pan. Add the bacon, garlic and onion then fry gently for 5 minutes, or until the onion has softened. Add the tomato puree and thyme, cook for a further 2 minutes, then place the duck legs back in the pan.
Cover them with the wine and stock, then leave to simmer for 1 hour with the lid on.
After the hour, add the carrot and leek to the pan. Cook for a further 30 minutes, then carefully lift the duck legs out of the pan, remove the meat from the bone and set aside in a warm place.
Mix the cornflour with two tablespoons of cold water and add the paste to the pan, stirring until the mixture thickens and turns glossy.
Fold the duck meat back into the sauce, taste to check the seasoning, then spoon your pie filling into six individual dishes and allow to cool.
Unroll and cut out pieces of pastry large enough to top each pie. Brush the edge of each dish with a little beaten egg.
Place the pastry on top and press firmly on the edges. Trim off any excess pastry with a sharp knife, then brush the pie lids with beaten egg.
When you are ready to cook, place the pies in a preheated oven at 180°C for 35 minutes until the pastry is risen and golden.