Minimising Changes When Refactoring Applications to Run Multiple Threads