Hello @adnw
There are a few posts about mortgages in the forum which may help.
https://community.quickfile.co.uk/t/how-to-tag-remortgage-funds-sole-trader/48318/4
It would be best to speak to your accountant for tailored professional advice on the specifics of your query.