Refactoring/cleanup of compute api

Refactor host check and remove unused conf imports.

Change-Id: I49466f7ab54dd6dbf0fc78bab3d2df44392ba3ee