Remove unnecessary associations.