Remove unused code from Capabilities plugin