Remove unused code in reports plugin