You are correct and as St. Paul said “Come out from among them.” It is modernity that is driving people away. Almost everyone intuitively knows that perverts are not the object of love and emulation. Many mainstream churches are embracing the pervert instead of calling him/her to repent. This failure is PART of the reason that people are moving away from churches.
Good pun though... Church attendance survey by the Pew research center.