Remove unused code from obr plugin