Ditching hand rolled API code for Katello own API library.