Rename function configureHosts to configureRules