I think there is no simple method for large scale extraction of Vit D from fat or oil. Just check pharmaceutical procedures used in extracting vit D from lanolin / woolfat. See for example https://www.vitamaniathemovie.com/how-to-make-vitamin-d/#:~:text=The%20synthesis%20of%20vitamin%20D,final%20product%20vitamin%20D3.