Membership controller remove code duplication

[#71835198]