Use separate controller for API call
Foreman 1.5 fixes