In a large mixing bowl whisk together the cassava flour, oat flour, almond flour and flaxseeds.
Slice the butter very thinly directly from the fridge and add to the flour.
Rub the mixture between fingertips until roughly shorn. It’s okay that the butter is still in largish pieces.
Whisk in the caster sugar.
Make a well in the centre of the dry mixture and pour in the beaten eggs.
Bring the dough together using a wooden spoon at first, if you like, but switch to using your hands for the final gathering.
Turn the shaggy pastry out onto a clean work surface and knead for about two minutes until the dough comes together into a smooth ball which is no longer sticky. If the dough is still too dry and crumbly then add a little extra milk.
Flatten the ball slightly to make a thick round disc. Wrap in baking parchment and place in the fridge for 1 hour to chill before rolling out.
Cut two large pieces of baking parchment, 2½ inches wider than the size you need to roll the pastry out to.
Sprinkle gluten-free flour on the inside of the parchment and place the chilled pastry disc between the parchment sheets.
Using a long rolling pin roll out the pastry into a round until it is about 5mm thick.
Peel away the baking parchment and use the rolling pin to lift the pastry over the baking tin.
Fit the pastry into the baking tin, patching up any cracking with excess pastry.
Use a sharp knife to cut away the excess pastry against the top of the tin.
Place the baking tin in the freezer for 10 minutes.
Remove and place a sheet of baking parchment over the pastry and fill the tin with baking beans.
Place the baking tin on a large baking tray to help get it in and out of the oven.
Place the baking tray with the tin in the middle of the oven and bake for 25 minutes.
Remove from the oven and discard the parchment and baking beans.
Take the saved egg yolk from making the pastry and whisk it lightly in a small bowl. Using a pastry brush, brush the egg yolk all over the surface of the pastry and up the insides and on the edges.
Place back in the oven for 5 minutes.
Remove from the oven and let rest for a few minutes.