Update less middleware to new implementation