``remove`` is safe to call even if the element is not a member of the list so this contains check is unnecessary.