It's treated as a cost of finance i.e. allowable at 20% in the same way as interest. Otherwise you'd be seeing a lot of BTL mortgages with very low rates but spectacularly large arrangement fees..
https://www.gov.uk/government/publications/restricting-finance-cost-relief-for-individual-landlords/restricting-finance-cost-relief-for-individual-landlords