It depends on whether you're switching to another lender. If you are switching lenders, effectively you have to apply for a mortgage again so you'll need a solicitor to:
* Check and sign your mortgage offer letter
* Carry out searches on the new property - if you're moving house
* Draw down the new mortgage and pay off the old mortgage