When you call PowerManager::VirtPowerManager autoloader tries to find it in any "$autoload_path/power_manager/virt_power_manager.rb" but since it's in app/services this would not work even with proper namespacing.