Remove unused code to support preffed-off and chrome-only APIs.