Heat the olive oil in a large, deep frying pan over medium-high heat. Cook the onion, carrot and celery for 4 to 5 minutes until soft, then add the garlic and cook for 1 minute.
Turn the heat to high and brown the beef mince in two batches, 4 to 5 minutes each, until no pink remains and browned bits form in the pan.
Return all the beef to the pan. Stir in the flour for 1 minute, then the tomato paste for 1 minute. Pour in the red wine and scrape up the browned bits, then add the beef stock, Worcestershire sauce, thyme, bay leaves, salt and pepper.
Simmer gently, uncovered, for 30 minutes until the gravy is thick and coats a spoon. Stir in the peas for the last 2 minutes, taste for salt, and remove the bay leaves.
Meanwhile, boil the potatoes in salted water for 15 minutes until tender. Drain, steam-dry for 30 seconds in the hot pot, then mash with the butter, warm milk and salt until smooth and fluffy.
Preheat the oven to 180°C (350°F). Spoon the filling into a 1.5 litre ovenproof dish, level it, and let it cool for 10 to 15 minutes.
Dollop the mash over the filling from the edges inward, spread gently to seal the edges, and draw fork ridges across the top. Sprinkle with Parmesan and drizzle with melted butter, or scatter with Cheddar.
Bake for 25 to 30 minutes until golden on top and bubbling at the edges. Stand for 5 minutes before serving.