Revert on bean condition for mongo repositories