Remove unneeded plugin references.