Remove unnecessary membership type check.