I believe that the word 'religion' is a very deceptive word. Very misunderstood.
Religion is mentioned only seven times in the Bible. Only one time out of the seven does God present religion in a positive way. The Bible says in James 1:27, "Pure religion and undefiled before God and the Father is this, To visit the fatherless and widows in their affliction, and to keep himself unspotted from the world." It's clear what that refers to. The same when we sing about that 'Old Time Religion'. But that is not what we are talking about.
The other six times that the Bible mentions religion, God is warning us against it! Don't let this confuse you. Religion is what Adam and Eve did when they sinned and realized that they were naked. They tried to cover themselves with leaves. Religion is what Cain did when he came to offer to God the veggies out of his garden. Religion is those people in Genesis 11 building a tower to try to reach God.