Refactored for group member, group member type converter and tests.