CRM-14197 code refactor of membership post process