hbo: better way to detect app and path values
init: removing unused imports.
refactor output to its own function

Almost the same code for all the fetchers.