I recommend you check this with your accountant - when I took out a lease my accountant said the associated legal fees had to be treated as capital expenditure (creating a new balance sheet code) rather than revenue expenditure (in P&L), I wouldn’t be surprised if your situation is similar but I’m in no way qualified to advise…