Moved `enable_rhrepo_and_fetchid` function to entities module.

This helps both test_repository module and test_smoke module
to use it.