Refactorized membership to api V5