Remove unused code in Http middleware
Exclude templates from Scrutinizer checks