Move buildMemberType to a method under MemberType