mainstream hinduism , by necessity , withdrew into a defensive position where it took cover under a layer of increased orthodoxy , at least judging by the number of hindu religious codes produced during this period .